<?php	


	$link = mysql_connect("localhost","root","");
     mysql_select_db("personalizatuweb", $link);
	  
	  $consultaSQL = "INSERT INTO personalizatuweb.pagina (ID_SITIO,NOMBREPAGINA,URL) VALUES ('".$_GET['site']."','".$_GET['nombre']."','URL')";
	  
	  mysql_query($consultaSQL, $link) or die(mysql_error());
	  mysql_close($link);
	  header ("Location: index.php?id=".$_GET['site']."");
	  
	  

	 ?>